import { RouteRecordRaw } from "vue-router";
import PageLayout from "../pages/Layout/Index";
import Login from "../pages/Login/Index";
import Refresh from "../pages/Refresh";
export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "root",
    component: PageLayout,
    redirect: "/home",
    children: [
      {
        path: "/home",
        name: "home",
        component: () => import("../pages/Home/Index"),
        meta:{
          title:'工作台'
        }
      },
      {
        path: "/system",
        name: "system",
        component: () => import("../pages/System/Index"),
        meta:{
          title:'系统管理'
        }
      },
      {
        path: "/project",
        name: "project",
        component: () => import("../pages/Project/Index"),
        meta:{
          title:'项目管理'
        }
      },
      {
        path: "/pdetail",
        name: "pdetail",
        component: () => import("../pages/Project/PDetail"),
        meta:{
          title:'项目管理/项目详情'
        }
      },
      {
        path: "/document",
        name: "document",
        component: () => import("../pages/Document/Index"),
        meta:{
          title:'文档管理'
        }
      },
      {
        path: "/wflow",
        name: "wflow",
        component: () => import("../pages/Wflow/Index"),
        meta:{
          title:'流程设计'
        }
      },
      {
        path: "/refresh",
        name: "refresh",
        component: Refresh,
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    component: Login,
  }
];
